import request from '@/utils/request'

const api_name = '/sx/shop'

export default {
    // 新增
    insert(data) {
        return request({
            url: `${api_name}/insert`,
            method: 'post',
            params: data
        })
    },
    // 删除
    deleteShop(id) {
        return request({
            url: `${api_name}/delete?id=${id}`,
            method: 'post',
        })
    },

    // 核实商家列表
    checkList(params) {
        return request({
            url: `${api_name}/checklist`,
            method: 'get',
            params: params
        })
    },
// 我的商家列表
    myList(params) {
        return request({
            url: `${api_name}/list`,
            method: 'get',
            params: params
        })
    },
    // 商家审核列表
    auditList(params) {
        return request({
            url: `${api_name}/auditList`,
            method: 'get',
            params:params
        })
    },
    // 商家审核
    auditShop(data) {
        return request({
            url: `${api_name}/auditShop`,
            method: 'post',
            data:data
        })
    },
    // 商家id
    detail(params) {
        return request({
            url: `${api_name}/get`,
            method: 'get',
            params: params
        })
    },
    // 商家Tab
    shopTabList() {
        return request({
            url: `${api_name}/shopTabList`,
            method: 'get',
        })
    },
    update(params) {
        return request({
            url: `${api_name}/update`,
            method: 'post',
            params: params
        })
    },


}

